.pagination {
  position: relative;
  height: calc(2.9rem + 2px);

  & a {
    color: $text;
  }

  & .pagination-previous,
  & .pagination-next {
    position: absolute;
    padding: 1rem;
    background-color: $white;
    border: 1px solid $border;
    font-size: 0.8rem;
    line-height: 1;
    text-transform: uppercase;

    &:focus,
    &:hover {
      color: $white;
      background-color: $primary;
      border-color: $primary;
    }
  }

  & .pagination-previous {
    top: 0;
    left: 0;
  }

  & .pagination-next {
    top: 0;
    right: 0;
  }
}
